/*
The surface-physics project: http://code.google.com/p/surface-physics/
Adds real world physics based on the Bullet physics engine, to bases in the Orbiter space
flight simulation software.

Written by Abhijit Nandy
License : Apache License 2.0


This file declares a dialog for changing the focused base in the visualizer.
Orbiter focus change is done by it's own mechanisms.

This class will later becomes part of a bigger GUI to control other aspects
of the Bump plugin, so it wasnt put into the Visualizer folder.


*/


#pragma once

#include "orbitersdk.h"
#include "DlgCtrl.h"
#include "../Resource Files/resource.h"
#include <commctrl.h>

//class BaseSelectorTab;
typedef void (*CustomButtonFunc)(OBJHANDLE);

// ==============================================================
// class BaseSelector
// ==============================================================

class BaseSelector {
public:
	BaseSelector (HINSTANCE hDLL);
	~BaseSelector ();
	void OpenDialog ();
	void CloseDialog ();
	void InitDialog (HWND hDlg);

	int MsgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);

	HWND DlgHandle () const { return hDlg; }
	HINSTANCE InstHandle () const { return hInst; }

	void Pause (bool pause);

public:


private:
	DWORD dwCmd;         // custom command handle
	HWND  hDlg;          // main dialog handle
	HINSTANCE hInst;     // module instance handle

};








